<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>

<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="list" checkbox="true" fitColumns="true"
  	 title="" actionUrl="labProjectPreviewController.do?datagrid&teachItemId=${obj.id }" 
  	 idField="id" fit="true" queryMode="group" width="100%">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"></t:dgCol>
   <t:dgCol title="文件名"  field="name"  hidden="false" query="false"  queryMode="single" width="50"></t:dgCol>
   <t:dgCol title="文件类型"  field="fileType"  hidden="false" query="false" queryMode="single" formatterjs="function(v,rec){return v==0? '视频':'文档'}" width="50"></t:dgCol>
   <t:dgCol title="是否必学"  field="isMustLearn"  hidden="false"  queryMode="single" query="false" formatterjs="function(v,rec){return v==0? '否':'是'}" width="50"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="50"></t:dgCol>
   <t:dgDelOpt title="删除" url="labProjectPreviewController.do?doDel&id={id}" />
   <t:dgToolBar title="上传资料" icon="icon-add" url="labProjectPreviewController.do?goAdd&teachItemId=${obj.id }" funname="add" height="500" width="800"></t:dgToolBar>
   <t:dgToolBar title="编辑" icon="icon-edit" url="labProjectPreviewController.do?goAdd&teachItemId=${obj.id }" funname="update" height="500" width="800"></t:dgToolBar>
   <t:dgToolBar title="批量删除"  icon="icon-remove" url="labProjectPreviewController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
  </t:datagrid>
  </div>
 </div>